/**
 *    Copyright 2009-2020 the original author or authors.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.apache.ibatis.aapl.annotation.impl;

/**
 * 更新策略，获取更新者的姓名和时间
 *
 * @author gu
 * @date 2020/3/27 14:56
 */
public interface UpdateStrategy {
  /**
   * 获取用户名，通过实现该类，可以获取到创建者信息
   * 这个创建者将会注入到@FieldUpdate生命的字段中去
   *
   * @return 返回要注入的对象
   */
  Object getUpdater();

  /**
   * 获取时间信息，通过实现该类，可以获取到时间信息
   * 这个时间信息将会注入到@FieldUpdate声明的字段当中去
   *
   * @return 返回要创建的时间
   */
  Object getUpdateTime();
}
